package com.tgpms.web.tongfei.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author jl
 * @since 2020-11-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("IN_POINT_PARTS")
@ApiModel(value="InPointParts对象", description="")
public class InPointParts implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID" , type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "部件所属单位")
    @TableField(value = "COMPANY")
    private String company;

    @ApiModelProperty(value = "部件二维码")
    @TableField(value = "QR_CODE")
    private String qrCode;

    @ApiModelProperty(value = "项目编码")
    @TableField(value = "PROJECT")
    private String project;

    @ApiModelProperty(value = "项目名称")
    @TableField(value = "PROJECT_NAME")
    private String projectName;

    @ApiModelProperty(value = "PBS编码")
    @TableField(value = "PBS_CODE")
    private String pbsCode;

    @ApiModelProperty(value = "工序")
    @TableField(value = "PD_CODE")
    private String pdCode;

    @ApiModelProperty(value = "部件编码")
    @TableField(value = "PART_CODE")
    private String partCode;

    @ApiModelProperty(value = "所在道路")
    @TableField(value = "PART_ROAD")
    private String partRoad;

    @ApiModelProperty(value = "井深")
    @TableField(value = "PART_DEPTH")
    private BigDecimal partDepth;

    @ApiModelProperty(value = "材料码")
    @TableField(value = "MATERIAL_CODE")
    private String materialCode;

    @ApiModelProperty(value = "经度")
    @TableField(value = "LONGITUDE")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    @TableField(value = "LATITUDE")
    private String latitude;

    @ApiModelProperty(value = "距离")
    @TableField(value = "DISTANCE")
    private BigDecimal distance;

    @ApiModelProperty(value = "坐标X")
    @TableField(value = "SX_COOR")
    private String sxCoor;

    @ApiModelProperty(value = "坐标Y")
    @TableField(value = "SY_COOR")
    private String syCoor;

    @ApiModelProperty(value = "是否最新0否1是")
    @TableField(value = "IS_NEW")
    private String isNew;

    @ApiModelProperty(value = "扫码次数")
    @TableField(value = "SCAN_TIMES")
    private Integer scanTimes;

    @ApiModelProperty(value = "备注")
    @TableField(value = "NOTES")
    private String notes;

    @ApiModelProperty(value = "是否删除")
    @TableField(value = "STATUS")
    @TableLogic(value="0",delval="1")//mybatisplus逻辑删除标记（0：有效；1：删除）
    private String status;

    @TableField(value = "INSERT_USER")
    private String insertUser;

    @TableField(value = "INSERT_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date insertDate;

    @TableField(value = "MODIFY_USER")
    private String modifyUser;

    @TableField(value = "MODIFY_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date modifyDate;

    @TableField(value = "DATA_OWNER")
    private String dataOwner;

    @TableField(value = "TO_USERS")
    private String toUsers;

    @TableField(value = "TO_GROUPS")
    private String toGroups;

    @TableField(value = "ROWSTAMP")
    private String rowstamp;

    @TableField(exist = false)
    private List<Newpsnodefile> newpsnodefileList;

}

